package com.tuandai.commons.alert;

/**
 * Created by zhangzhenbin on 18-3-14.
 */
public class AlertSenderConfig {
    private String platformUrl;    //告警平台接口地址
    private String appName;         //应用名
    private Integer policy = 1;     //0 无过滤 1按小时过滤 2、相同service按小时过滤 3按分钟过滤 4相同service按分钟过滤
    private Integer policyNum = 10;  //过滤数量
    private Integer concurrentNum = 2; //并发请求数

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getPlatformUrl() {
        return platformUrl;
    }

    public void setPlatformUrl(String platformUrl) {
        this.platformUrl = platformUrl;
    }

    public Integer getPolicy() {
        return policy == null ? 0 : policy;
    }

    public void setPolicy(Integer policy) {
        this.policy = policy;
    }

    public Integer getPolicyNum() {
        return policyNum == null ? 0 : policyNum;
    }

    public void setPolicyNum(Integer policyNum) {
        this.policyNum = policyNum;
    }

    public Integer getConcurrentNum() {
        return concurrentNum == null ? 0 : concurrentNum;
    }

    public void setConcurrentNum(Integer concurrentNum) {
        this.concurrentNum = concurrentNum;
    }
}
